//
//  QQViewCell.m
//  TestTableView
//
//  Created by Hunk on 12-1-10.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "QQViewCell.h"

@implementation QQViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) 
    {
        label = [[[UILabel alloc] initWithFrame:CGRectMake(0.0, 0.0, 320, 30)] autorelease];
        [label setBackgroundColor:[UIColor whiteColor]];
//        [label setText:@"For test"];
        [self.contentView addSubview:label];
    }
    return self;
}

- (void)setName:(NSString *)name
{
    [label setText:name];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
